Optimal. Leaf size=29 \[ a \sin (c) \text{CosIntegral}(d x)+a \cos (c) \text{Si}(d x)-\frac{b \cos (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.148446, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {6742, 2638, 3303, 3299, 3302} \[ a \sin (c) \text{CosIntegral}(d x)+a \cos (c) \text{Si}(d x)-\frac{b \cos (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 2638
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{(a+b x) \sin (c+d x)}{x} \, dx &=\int \left (b \sin (c+d x)+\frac{a \sin (c+d x)}{x}\right ) \, dx\\ &=a \int \frac{\sin (c+d x)}{x} \, dx+b \int \sin (c+d x) \, dx\\ &=-\frac{b \cos (c+d x)}{d}+(a \cos (c)) \int \frac{\sin (d x)}{x} \, dx+(a \sin (c)) \int \frac{\cos (d x)}{x} \, dx\\ &=-\frac{b \cos (c+d x)}{d}+a \text{Ci}(d x) \sin (c)+a \cos (c) \text{Si}(d x)\\ \end{align*}
Mathematica [A] time = 0.0388962, size = 40, normalized size = 1.38 \[ a \sin (c) \text{CosIntegral}(d x)+a \cos (c) \text{Si}(d x)+\frac{b \sin (c) \sin (d x)}{d}-\frac{b \cos (c) \cos (d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 31, normalized size = 1.1 \begin{align*} -{\frac{b\cos \left ( dx+c \right ) }{d}}+a \left ({\it Si} \left ( dx \right ) \cos \left ( c \right ) +{\it Ci} \left ( dx \right ) \sin \left ( c \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.34586, size = 705, normalized size = 24.31 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65953, size = 158, normalized size = 5.45 \begin{align*} \frac{2 \, a d \cos \left (c\right ) \operatorname{Si}\left (d x\right ) - 2 \, b \cos \left (d x + c\right ) +{\left (a d \operatorname{Ci}\left (d x\right ) + a d \operatorname{Ci}\left (-d x\right )\right )} \sin \left (c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 5.16126, size = 37, normalized size = 1.28 \begin{align*} - a \left (- \sin{\left (c \right )} \operatorname{Ci}{\left (d x \right )} - \cos{\left (c \right )} \operatorname{Si}{\left (d x \right )}\right ) - b \left (\begin{cases} - x \sin{\left (c \right )} & \text{for}\: d = 0 \\\frac{\cos{\left (c + d x \right )}}{d} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]